#include "eighdr.h"

#define MAX 80

typedef struct _slist {
  struct _slist *next;
  char s[MAX];
}slist;

typedef slist *slptr;

void show_list(slptr l){
  for(; l; l = l->next){
    printf("%s\n",l->s);
  }
}
void del_list(slptr l){
  while(l){
    slptr n = l->next;
    free(l);
    l = n;
  }
}
slptr copy_list_rev(slptr l){
  slptr r = NULL;
  while(l){
    slptr n = malloc(sizeof(slist));
    n->next = r;
    strcpy(n->s,l->s);
    r = n;
    l = l->next;
  }
  return r;
}
int main(void){
  slptr list;
  strcpy(list->s,"Hallo");
  show_list(list);
  return 0;
}
